package com.zt.controller;

import com.zt.pojo.dto.LoginDto;
import com.zt.service.UserService;
import com.zt.util.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2025/5/9 18:53
 * @Author neko
 **/
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("login")
    public ResultVo login(@RequestBody LoginDto dto){
        return userService.login(dto);
    }
}
